// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import cache from '@/utils/cache' // 缓存处理

// 引入icon
import './css/iconfont.js'
// 引入rem适配
import 'lib-flexible/flexible'
// 引入jq
import $ from 'jquery'
// 引入mint
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
// 引入全局css及清除默认样式css
import './css/common.css'
import './css/reset.css'
import './css/animate.css'
// 引入elementui
import 'element-ui/lib/theme-chalk/index.css';
import { Checkbox,CheckboxGroup,Switch } from "element-ui";

// // 引入echarts
// import echarts from 'echarts'
import store from './store/index'
// 自定义滑动指令
import Vue2TouchEvents from 'vue2-touch-events'

// 定义全局组件
import headUsual from '@/pages/components/headUsual';
import footerTotal from "@/pages/components/footerTotal";


Vue.component('headUsual',headUsual);
Vue.component('footerTotal',footerTotal);


// 图片预览
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
let options = {
  fullscreenEl: true //关闭全屏按钮
}

// Vue.prototype.$echarts = echarts 

Vue.config.productionTip = false

Vue.use(Mint);
Vue.use(preview,options);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Switch);

Vue.use(Vue2TouchEvents);
 
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App},
  template: '<App/>',
  store,//初始化仓库
  render: h => h(App)
})
